package com.fy56.platform.logistics.service.impl;

import com.fy56.platform.logistics.common.ResultModel;
import com.fy56.platform.logistics.mapper.MenuMapper;
import com.fy56.platform.logistics.model.Menu;
import com.fy56.platform.logistics.service.web.IMenuService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author li
 * @date 2018-02-08 16:58
 */
@Service
public class MenuServiceImpl implements IMenuService {

    @Autowired
    private MenuMapper menuMapper;

    @Override
    public Menu selectByPrimaryKey(Long id) {
        return menuMapper.selectByPrimaryKey(id);
    }

    @Override
    public Menu get(Menu entity) {
        return null;
    }

    @Override
    public ResultModel insert(Menu entity) {
        return null;
    }

    @Override
    public ResultModel insertSelective(Menu entity) {
        return null;
    }

    @Override
    public ResultModel update(Menu entity) {
        return null;
    }

    @Override
    public ResultModel updateSelective(Menu entity) {
        return null;
    }

    @Override
    public ResultModel delete(Long id) {
        return null;
    }

    @Override
    public ResultModel delete(Menu entity) {
        return null;
    }

    @Override
    @Transactional(readOnly = true)
    public List<Menu> findList(Menu entity) {
        List<Menu> list = menuMapper.findList(entity);
        return list;
    }
}
